<?php

namespace app\admin\controller;

use app\model\AuthRule;
use support\Request;
use Webman\RedisQueue\Redis;
use \GatewayWorker\Lib\Gateway;

class IndexController extends BaseController
{

    public function index(Request $request)
    {

        $data['admin_info'] = $request->admin_info;
        //左侧栏目
        $data['auth_rule'] = AuthRule::getRoleAuthRule($request->admin_info['group_id']);

        return view('index/index', $data);
    }

    /**
     * 首页展示
     * @params string
     * @return
     */
    public function dashboard()
    {
        return view('index/dashboard');
    }

}
